# 导入蓝图对象
from flask import current_app
from flask import render_template
from flask import session

from . import news_blue

# 项目首页\
@news_blue.route('/')
def index():
    session['name'] = '2018'
    return render_template('news/index.html')
#     项目logo展示

@news_blue.route('/favicon.ico')
def favicon():
    return current_app.send_static_file('news/favicon.ico')